const process1 = require("child_process");
module.exports = name => {
  console.log("项目模版下载 ...");
  process1.exec(
    `git clone https://gitee.com/alexliu1987/mfe-template.git ${name} && rm -rfv ${name}/.git`,
    function(error, stdout, stderr) {
      if (error !== null) {
        console.log("exec error: " + error);
        return;
      }
      console.log(stdout);
      console.log("clone success");
    }
  );
};
